package cn.qiyu5522.tk_ems.service;

import cn.qiyu5522.tk_ems.entity.Student;
import cn.qiyu5522.tk_ems.entity.dto.StudentExcelDTO;
import cn.qiyu5522.tk_ems.entity.dto.QueryParamDTO;
import cn.qiyu5522.tk_ems.entity.vo.StudentVO;
import cn.qiyu5522.tk_ems.result.R;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-03
 */
public interface StudentService extends IService<Student> {

    int saveMore(@Valid List<StudentVO> studentList);

    R queryStudentByPageCondition(QueryParamDTO<StudentVO> queryParamDTO);

    R getDepAndMaJorAndClassroom();

    List<StudentExcelDTO> queryStudentListByIds(Long[] ids);

    R handleMapConvertAndSave(List<StudentExcelDTO> listByFile);

    R checkStudentIdIsExisting(Long studentId);

    R getStudentInfoById(Long studentId);
}
